﻿//
// Created by wellwei on 2023/12/9.
//
#pragma once

#include <string>
#include "Book.h"

class BorrowingRecord {
private:

    std::string ID;                 // 借阅记录 ID
    std::string bookISBN;           // 图书 ISBN 号
    std::string borrowerID;           // 读者 ID
    std::string borrowDate;         // 借书日期
    std::string returnDate;         // 还书日期
    std::string continueDate;       // 续借日期
    std::string status;             // 借阅状态
    int remainingDays;              // 剩余天数
    int index;                      // 索引

public:
    BorrowingRecord(const std::string &ID, const std::string &bookISBN, const std::string &readerID,
                    const std::string &borrowDate, const std::string &returnDate, const std::string &continueDate,
                    std::string status, int remainingDays, int index);

    BorrowingRecord(const std::string &bookISBN, const std::string &readerID, const std::string &borrowDate, int index);

    const std::string &getID() const;

    void setID(const std::string &ID);

    const std::string &getBookISBN() const;

    void setBookISBN(const std::string &bookISBN);

    const std::string &getBorrowerID() const;

    void setReaderID(const std::string &readerID);

    const std::string &getBorrowDate() const;

    void setBorrowDate(const std::string &borrowDate);

    const std::string &getReturnDate() const;

    void setReturnDate(const std::string &returnDate);

    const std::string &getContinueDate() const;

    void setContinueDate(const std::string &continueDate);

    int getRemainingDays() const;

    void setRemainingDays(int remainingDays);

    int getIndex() const;

    void setIndex(int index);

    const std::string &getStatus() const;

    void setStatus(const std::string &status);

    void showInfo(Book book);
};

